home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 June / EnigmA AMIGA RUN 19 (1997)(G.R. Edizioni)(IT)[!][issue 1997-06][EAR-CD III].iso / recent3 / mounter.readme < prev    next >
Text File  |  1997-05-13  |  5KB  |  144 lines

  1. Short:    Automatic mounter for removable media
  2. Author:   thor@einstein.math.tu-berlin.de
  3. Uploader: thor@einstein.math.tu-berlin.de
  4. Type:     disk/misc
  5.  
  6. _____________________________________________________________________________
  7.  
  8.                         The THOR-Software Licence
  9.  
  10.  
  11. This License applies to the computer programs known as "Mounter" 
  12. and "SwitchReq". The "Program", below, refers to such program.
  13.  
  14.  
  15. The programs and files in this distribution are freely distributable
  16. under the restrictions stated below, but are also Copyright (c)
  17. Thomas Richter.
  18.  
  19.  
  20. Distribution of the Program by a commercial organization without written
  21. permission from the author to any third party is prohibited if any payment
  22. is made in connection with such distribution, whether directly
  23. (as in payment for a copy of the Program) or indirectly (as in payment
  24. for some service related to the Program, or payment for some product
  25. or service that includes a copy of the Program "without charge";
  26. these are only examples, and not an exhaustive enumeration of prohibited
  27. activities). However, the following methods of distribution involving
  28. payment shall not in and of themselves be a violation of this restriction:
  29.  
  30.  
  31. (i) Posting the Program on a public access information storage and
  32. retrieval service for which a fee is received for retrieving information
  33. (such as an on-line service), provided that the fee is not
  34. content-dependent (i.e., the fee would be the same for retrieving the same
  35. volume of information consisting of random data).
  36.  
  37.  
  38.  
  39. (ii) Distributing the Program on a CD-ROM, provided that the files
  40. containing the Program are reproduced entirely and verbatim on such
  41. CD-ROM, and provided further that all information on such CD-ROM be
  42. redistributable for non-commercial purposes without charge.
  43.  
  44.  
  45.  
  46. Everything in this distribution must be kept together, in original
  47. and unmodified form.
  48.  
  49.  
  50.  
  51.  
  52. Limitations.
  53.  
  54. THE PROGRAM IS PROVIDED TO YOU "AS IS," WITHOUT WARRANTY. THERE IS NO
  55. WARRANTY FOR THE PROGRAM, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
  56. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  57. PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. THE ENTIRE
  58. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD
  59. THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  60. SERVICING, REPAIR OR CORRECTION.
  61.  
  62.  
  63.  
  64. IF YOU DO NOT ACCEPT THIS LICENCE, YOU MUST DELETE ALL FILES CONTAINED IN
  65. THIS ARCHIVE.
  66.  
  67. _____________________________________________________________________________
  68.  
  69. Purpose of this program:
  70.  
  71.  
  72. Sets up a task that checks periodically one device for a media change, and
  73. starts one of several commands. The mounting itself should be done by one
  74. program you got with your hardware or which is supplied by CBM. This is,
  75. for example, "OktagonMount" for the ALF/Oktagon controller and "GVPScsiCtrl"
  76. for the GVP scsi adapter.
  77.  
  78. Synopsis:
  79.  
  80.  
  81. Mounter DEVICE/A,UNIT/A/N,FLAGS/N,
  82.     RELOADCMD,REMOVECMD,RETRYCMD,
  83.     MOUNTCMD,DELAY/N,PRI/N
  84.  
  85. DEVICE:        name of the device to check, i.e. "oktagon.device".
  86. UNIT:        unit to check ("5" or "6" for the popular Iomega ZIP drives)
  87. FLAGS:        flags value for OpenDevice, defaults to zero.
  88. RELOADCMD:    a command used to mount a volume. This one gets executed each
  89.         time a volume is inserted in the device. Should be something
  90.         like "OktagonMount" or "GVPScsiCmp".
  91. REMOVECMD:    a command used to remove an already mounted volume. Gets
  92.         executed each time a volume is removed from the device.
  93.         Could be used to dismount the handler, i.e.
  94.         "assign ZIP: dismount" is a useful choice.
  95. RETRYCMD:    a command used to check if the hardware is ready for 
  96.         operation. It gets executed if "Mounter" failed to open the
  97.         device with OpenDevice(). This command should check the 
  98.         hardware or should try to load the hardware driver.
  99. MOUNTCMD:    a command used to initialize the hardware if it is ready
  100.         for operation. Gets called directly after "Mounter" was the
  101.         first time successful to open the device.
  102. DELAY:        Specifies the checking period in seconds.
  103. PRI:        Specifies the priority of the "Mounter" process. Useful
  104.         values are "0" or "-1".
  105.  
  106. The precise use of this command relies on your hardware, so I can't give a
  107. general command line that works for all removable media. The following
  108. layout was proven to work relyable with the "oktagon" SCSI controller with
  109. a ZIP drive as unit 6:
  110.  
  111. Run >NIL: <NIL: Mounter >NIL: <NIL: oktagon.device 6 
  112. RELOADCMD="OktagonMount" REMOVECMD="execute S:Remove" DELAY=5 PRI=-1
  113.  
  114. where "S:Remove" is a script that looks like this:
  115.  
  116. wait 5
  117. assign ZIP: dismount
  118.  
  119.  
  120. The "Run" command is used (and should be used like this) to lauch 
  121. the "Mounter" process in background. This command line should go in your
  122. startup sequence.
  123.  
  124.  
  125. For the GVP SCSI controller, leave the "RELOADCMD" and "REMOVECMD" blank and
  126. specify:
  127.  
  128. Run >NIL: <NIL: Mounter >NIL: <NIL: oktagon.device 6 
  129. RETRYCMD="GVPSCSICtrl" MOUNTCMD="execute S:ZipMount" DELAY=5 PRI=-1
  130.  
  131. where "S:ZipMount" is this script:
  132.  
  133. SwitchReq off
  134. GvpSCSICtrl -r
  135. DiskChange ZIP:
  136.  
  137. A mount entry for the ZIP should be added to DEVS:DosDrivers.
  138.  
  139. SwitchReq is another tool that comes with this archive. It disables the
  140. failure requesters.
  141.  
  142.  
  143. Thomas,        May 1997
  144.